module music (
    input clk,
    output speaker
);

reg [15:0] counter;

always @(posedge clk) begin
    counter <= counter + 1;
end

assign speaker = counter[15];

endmodule